package cn.schoolwow.quickdao.module.parent.domain;

import cn.schoolwow.quickdao.domain.database.parent.RealTimePrintStatementOption;
import cn.schoolwow.quickdao.domain.entity.SqlLog;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

public class LogRecordOption {
    /**
     * 是否记录SQL日志到数据库
     */
    public boolean recordSqlLog;

    /**
     * 是否打印流程日志
     * */
    public boolean recordFlowLog;

    /**
     * 是否开启记录模式
     * */
    public boolean record;

    /**
     * 记录SQL语句
     * */
    public ThreadLocal<StringBuffer> sqlRecordBuilderThreadLocal = new ThreadLocal<StringBuffer>();

    /**
     * SQL日志队列
     * */
    public BlockingQueue<SqlLog> sqlLogBlockingQueue = new ArrayBlockingQueue<SqlLog>(1024);

    /**
     * 实时过滤语句选项
     * */
    public RealTimePrintStatementOption realTimePrintStatementOption;

    /**
     * 是否开启调试模式
     * */
    public boolean debug;
}
